home *** CD-ROM | disk | FTP | other *** search
/ 600 Games / 600games.iso / Acao / DemonicDefence3.swf / scripts / DefineButton2_1020 / BUTTONCONDACTION on(release).as next >
Encoding:
Text File  |  2005-09-27  |  409 b   |  17 lines

  1. on(release){
  2.    if(_root.magRune >= 4 && _root.fireRune >= 4 && _root.exploRune >= 2 && this.timey.timer == 100)
  3.    {
  4.       this.timey.timer = 0;
  5.       this.timey.timeIt = 0.6;
  6.       this.timey._visible = true;
  7.       _root.magRune -= 4;
  8.       _root.exploRune -= 2;
  9.       _root.fireRune -= 4;
  10.       _root.lightHit.lighty = true;
  11.    }
  12.    else
  13.    {
  14.       _root.messy = "Not enough Runes";
  15.    }
  16. }
  17.